// interceptors/index.ts
import { HTTP_INTERCEPTORS, HttpXsrfTokenExtractor } from '@angular/common/http';
import { NoopInterceptor } from "./NoopInterceptor";
import { SunshineLoggerInterceptor } from './sunshine-logger.interceptor';
import { HttpStatusCodeInterceptor } from './http-status.interceptor';

// 导出拦截器
export const httpInterceptorProviders = [
  {
    provide: HTTP_INTERCEPTORS,
    useClass: NoopInterceptor,
    multi: true
  },
  {
    provide: HTTP_INTERCEPTORS,
    useClass: HttpStatusCodeInterceptor,
    multi: true
  },
];
